const mongoose = require('mongoose');

mongoose.connect('mongodb://localhost:27017/test', {useNewUrlParser: true, useUnifiedTopology: true});

const Schema = mongoose.Schema;
const channelSchema = new Schema({
    channelId: String,
    name: String
});

module.exports = mongoose.model('Channel', channelSchema);